package cn.lutu.protocol.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @date 2023-06-03
 * @author luoyinhan
 * */
@Data
@TableName("t_order")
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String subject;
    private Long subjectId;
    private String orderNo;
    private Double totalAmount;
    private String status;
    private String payType;
    private Long userId;
    private String useName;
    private Integer useStatus;
    private String email;
    private String phone;
    private Integer quantity;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    private Long categoryId;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime startTime;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime endTime;
}
